import Mock from 'mockjs'

let template = {
    "list|10" : [
        {
            "id|+1" : 0,
            "title" : "@ctitle(2,4)",
            "img" : "@image(100x100,@color,@city)",
            "price|1-100" : 1
        }
    ]
}

let data = Mock.mock(template)

Mock.mock('/api/list','get',() => {
    return data
})